package com.itheima.datasource;

import com.mchange.v2.c3p0.ComboPooledDataSource;

import java.sql.Connection;

public class C3P0 {
    public static void main(String[] args)throws Exception {
        ComboPooledDataSource dataSource = new ComboPooledDataSource();

        Connection connection1 = dataSource.getConnection();
        System.out.println(connection1);

        Connection connection2 = dataSource.getConnection();
        System.out.println(connection2);

        //Connection connection3 = dataSource.getConnection();
        //System.out.println(connection3);
    }
}
